package com.yzl.meeting.business.entity;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * @Title: test
 * @Author: 姚志立
 * @Description:
 * @Date: 2020/10/11 2:10
 * @Version: 1.0
 */
public class test {
    public static void main(String[] args) throws ParseException {
        String date="2020-10-10T17:01";
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm");
        Date parse1 = sdf.parse(date);
        long time = sdf.parse(date).getTime();
        String format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(time);
        System.out.println(format);

//        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm");
//        Date parse = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(format);
//        long time1 = parse.getTime();
//        Date date1 = new Date(time1);
//        String format1 = sdf.format(date1);
//        System.out.println(format1);
    }
}
